Network-based diffusion analysis